/*
 *  CocoaAssert.h
 *  SoundController
 *
 *  Created by jiro on 09/07/12.
 *  Copyright 2009 jiro music. All rights reserved.
 *
 */

#import <Cocoa/Cocoa.h>

#define AssertTrue( expression ) \
	if ( ! ( expression ) ) { \
		NSLog( @"AssertTrue fail\nfile: %s, line: %d\n" # expression "\n", __FILE__, __LINE__ ); \
	}

#define AssertEqual( expression, expression2, format ) \
	if ( ( expression ) != ( expression2 ) ) { \
		NSLog( @"AssertEqual fail\nfile: %s, line: %d\n" # expression " should == " # expression2 " but " # expression " == " format "\n", __FILE__, __LINE__, (expression) ); \
	}
